import 'text_style.dart';
import 'axis_pointer.dart';


import 'package:json_annotation/json_annotation.dart';

part 'tooltip.g.dart';

@JsonSerializable(includeIfNull: false, explicitToJson: true)
class Tooltip {
  var show;
  var trigger;
  AxisPointer? axisPointer;
  var showContent;
  var alwaysShowContent;
  var triggerOn;
  var showDelay;
  var hideDelay;
  var enterable;

  var renderMode;
  var confine;
  var appendToBody;
  var className;
  var transitionDuration;
  var position;
  var formatter;
  var backgroundColor;
  var borderColor;
  var borderWidth;
  var padding;
  TextStyle? textStyle;
  var extraCssText;
  var order;

  Tooltip(
      {this.show,
      this.trigger,
      this.axisPointer,
      this.showContent,
      this.alwaysShowContent,
      this.triggerOn,
      this.showDelay,
      this.hideDelay,
      this.enterable,
      this.renderMode,
      this.confine,
      this.appendToBody,
      this.className,
      this.transitionDuration,
      this.position,
      this.formatter,
      this.backgroundColor,
      this.borderColor,
      this.borderWidth,
      this.padding,
      this.textStyle,
      this.extraCssText,
      this.order});


  factory Tooltip.fromJson(Map<String, dynamic> json) => _$TooltipFromJson(json);

  Map<String, dynamic> toJson() => _$TooltipToJson(this);
}
